import { group } from "./groupBy";

const indexBy = group(function (result, value, key) {
  result[key] = value;
});

export default indexBy